package com.dongdong.bookstore.module.ums.viewmodel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * 管理员登录参数
 * @author chiangkai
 * @date 2021-10-21
 * @email chiangkk@163.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AdminLoginParam {
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
}
